<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2024-06-04
Time: 16:10
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>参与投票</title>
<link type="text/css" rel="stylesheet" href="../css/style.css" />
</head>
<body>
<jsp:include page="top.jsp" />
<div id="vote" class="wrap">
	<h2>参与投票</h2>
	<ul class="list">
		<li>
			<h4>${voteSubject.vsTitle}</h4>
			<p class="info">共有 ${fn:length(voteSubject.voteOptions)} 个选项，已有 ${fn:length(voteSubject.voteItems)} 个网友参与了投票。</p>
			<form method="post">
				<input type="hidden" name="vsId" value="${voteSubject.vsId}"/>
				<input type="hidden" name="vuUserId" value="${sessionScope.user.vuUserId}"/>
				<ol>
					<c:forEach items="${voteSubject.voteOptions}" var="voteOption">
						<li>
							<input type="${voteSubject.vsType == 1 ? 'radio' : 'checkbox'}" name="voId" value="${voteOption.voId}"/>${voteOption.voOption}
						</li>
					</c:forEach>
				</ol>
				<p class="voteView">
					<input type="image" src="../images/button_vote.gif" />
					<a href="javascript:void(0);" onclick="window.location.href='/selectAllSubject?vsid=${voteSubject.vsId}'"><img src="../images/button_view.gif" /></a>
				</p>
			</form>
		</li>
	</ul>
</div>
<div id="footer" class="wrap">
	北大青鸟 &copy; 版权所有
</div>
</body>
</html>
